﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" StylesheetTheme="Content" AutoEventWireup="true" CodeFile="TaskEvaluateDetachment.aspx.cs" Inherits="Evaluate_TaskEvaluateDetachment" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div id="article">
        <asp:Literal ID="Body" runat="server" EnableViewState="False"></asp:Literal>
    </div>
    <br />
    <table cellspacing="0" cellpadding="0" width="100%" class="intable">
        <caption>
            <span>审核任务</span></caption>
        <tr>
            <td style="width: 80px;">
                任务执行人：
            </td>
            <td>
                <asp:Label ID="UserName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                任务名称：
            </td>
            <td>
                <asp:Label ID="TaskTitle" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                起止日期：
            </td>
            <td>
                <asp:Label ID="TaskDate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                任务总分：
            </td>
            <td>
                <asp:Label ID="InitScore" runat="server" ForeColor="#FF3300">0</asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                完成率：
            </td>
            <td>
                <asp:Label ID="Progress" runat="server" Text="0%" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                得分：
            </td>
            <td>
                <asp:Label ID="lblScore" runat="server" ForeColor="#FF3300">0</asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvReason" runat="server" Width="100%" CellSpacing="0"
                    Caption="<span>扣分条目</span>" OnRowDataBound="gvReason_RowDataBound" 
                    onrowcommand="gvReason_RowCommand">
                    <Columns>
                        <asp:TemplateField>
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle Width="30px" />
                            <ItemTemplate>
                                <asp:Label ID="ID" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                扣分原因
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("Reason") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                扣分
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("Point") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="btnDelete" ImageUrl="~/Images/delete.gif" CommandName="del"
                                    CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('是否真的删除所选记录?')" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                扣分原因：
            </td>
            <td>
                <asp:TextBox ID="txtReason" runat="server" Height="60px" TextMode="MultiLine" Width="90%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                所扣分数：
            </td>
            <td>
                <asp:TextBox ID="txtPoint" runat="server" Width="68px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="ButtonSave" runat="server" Text="扣分" OnClick="ButtonSave_Click" />
                &nbsp;<asp:Button ID="BtnBreak" runat="server" Text="返回" OnClick="BtnBreak_Click" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="Prompt" runat="server"></asp:Label>
                <asp:HiddenField ID="hidDate" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>

